#include <BustaNetInternal.h>
Inheritance diagram for MPJoinResponse:
Public Member Functions | |
MPJoinResponse (bool accept, char *msg, int cID) | |
CONSTRUCTOR. | |
bool | getAcceptance () |
Returns the acceptance by the server. | |
char * | getReason () |
Returns the reason for denial by the server. | |
int | getClientID () |
Returns the client's identification number if accepted. |
This message is received when a player has attempted to join a multiplayer game. The server responds with an acceptance or denial to the client's join attempt. The information about that response is encapsulated in this message.
|
CONSTRUCTOR. Creates an instance of the MPJoinResponse class.
|
|
Returns the acceptance by the server. Returns whether or not the server allowed the client to join the game. An acceptance of true denotes that the server allowed the client to join the game. A return of false denotes denial of the client's join game request.
|
|
Returns the client's identification number if accepted. The server provides the client with an identification number for the multiplayer game if the the client was allowed to join the game. This method returns that identification number.
|
|
Returns the reason for denial by the server. This method returns the reason why the server has denied the client if the client was denied.
|